import React, { Component } from 'react'
// dangerouslySetInnerHTML
// 解析输出内容
// 默认是转义输出
// __html
export default class App extends Component {

  render() {
    const content = `<h1>富文本传递过来的值</h1>`
    return (
      <div>
        { content }
        <div dangerouslySetInnerHTML={{ 
          __html: content
        }}></div>
      </div>
    )
  }
}
